<form action="/backend/news/records" method="get" class="filter">
    <label for="category">分类</label>
    <select name="category">
		<option value="0">全部</option>
		<?php foreach ($categories as $category): ?>
			<option value="<?php echo $category->id; ?>">
				<?php echo $category->name_zh; ?>
			</option>
		<?php endforeach; ?>
    </select>
    <label for="created_at">发布时间</label>
    <input type="text" class="text datetime" name="start" autocomplete="off"/> 到 <input type="text" class="text datetime" name="end" autocomplete="off"/>
    <input type="submit" class="submit" value="检索"/>
</form>

<ul class="button">
    <li><a href="/backend/news/add" class="add">添加</a></li>
</ul>
<div class="pagination"></div>
<table class="records">
	<tbody></tbody>
</table>
<div class="pagination"></div>

<script type="text/x-jquery-tmpl" id="list-template">
	<tr>
		<td width="150" style="vertical-align: top;padding: 5px;">
			<a href="/backend/news/edit/${id}" class="image-container">
				<img src="/assets/upload/img/${$item.thumbnail(home_cover_name)}" alt="${title_zh}"/>
			</a>
		</td>
		<td>
			<h3>${category_name}-${title_zh} <span class="datetime">${created_at}</span></h3>
			<div class="content">${$item.stripTags(content_zh)}</div>
			<div class="action">
				<a href="/backend/news/edit/${id}">编辑</a>
				<a href="javascript:void(0);" data="${id}" class="delete">删除</a>
			</div>
		</td>
	</tr>
</script>
<script type="text/x-jquery-tmpl" id="none-template">
    <tr><td style="text-align: center;" colspan="2">没有搜索到结果。</td></tr>
</script>